define(function (require) {
    var app = require('./app');
    var $=require("jquery");
    require('angular');
    var toastr=require('toastr');

    app.run(['$state', '$stateParams', '$rootScope','$location','$window','$log', function ($state, $stateParams, $rootScope,$location,$window,$log) {
        $rootScope.$state = $state;
        $rootScope.$stateParams = $stateParams;
        $rootScope.path = $location.path();
        $rootScope.userName = decodeURI($location.absUrl().split('?')[1]);
        $rootScope.userType = decodeURI($location.absUrl().split('?')[2].split('#')[0]);



        $rootScope.$on('$routeChangeSuccess', function(newV) {
            console.log($location.path())
        });


    }]);

    app.controller('AppController', ['$scope',
        function($scope) {

        }
    ]);
    app.controller('HeaderController', ['$rootScope', '$scope', '$http','$interval','$timeout','$filter',
        function($rootScope, $scope, $http,$interval,$timeout,$filter) {



            $scope.logout = function() {
                $http({
                    method: 'POST',
                    url: "/admin/loginOut"
                }).success(function(data) {

                    location.reload();
                }).error(function(data) {});
            };


            $scope.getSysTime= function () {
                $http({
                    method: 'POST',
                    url: "/admin/getServerTime"
                }).success(function(data) {
                    $scope.sysTime=$filter('date')(data,'yyyy-MM-dd HH:mm');

                }).error(function(data) {});
            };
            $scope.getSysTime();
            $interval($scope.getSysTime,60000);

            $scope.changePsw = function() {
                $scope.changeModal = !$scope.changeModal;
                $scope.list = {};
                $scope.Verification = {};
                $scope.Verification.getCodeTest = '获取短信验证码';
                $scope.Verification.isTimeOut = false;
                $scope.Verification.time = '';
            };


            $scope.getCode=function(){

                $http({
                    method: 'POST',
                    url: "/admin/sysUser/modifyMobileSendMessage",
                    data:{},
                }).success(function(data) {
                    console.info(data);
                    if(data.result=='success'){

                        $scope.Verification.getCodeTest='重新发送';
                        $scope.Verification.time=60;
                        $scope.Verification.isTimeOut=true;

                        $interval(function () {
                            if($scope.Verification.time==0){
                                $scope.Verification.isTimeOut=false;
                                $scope.Verification.getCodeTest='获取短信验证码';
                                $scope.Verification.time='';
                            }else{
                                $scope.Verification.time--;
                            }
                        },1000);
                    }else{
                        toastr.error('发送失败');
                        $scope.Verification.isTimeOut=false;
                        $scope.Verification.getCodeTest='获取短信验证码';
                        $scope.Verification.time='';
                    }

                }).error(function(data) {
                    toastr.error('通讯失败')
                });
            };

            $scope.confirm= function () {
                $http({
                    method: 'POST',
                    url: "/admin/sysuser/modifyPass",
                    data:{
                        newPassword:$scope.list.newPassword,
                        mobileCode:$scope.list.mobileCode,
                    }
                }).success(function(data) {
                    console.info(data);
                    if(data.result=='success'){
                        toastr.success('修改成功');
                        $scope.changeModal = !$scope.changeModal;
                        $timeout(function () {
                            location.reload();
                        },1000);

                    }else{
                        toastr.error(data.messageText);
                        $scope.Verification.isTimeOut2=false;
                        $scope.Verification.getCodeTest2='获取短信验证码';
                        $scope.Verification.time2='';
                    }

                }).error(function(data) {});
            };
            }

    ]);
//siderBar
    app.controller('SidebarController', ['$scope','$http',
        function($scope,$http) {
            $http({
                method: 'POST',
                url: "/admin/resource/list"
            }).success(function(data) {
                console.info(data);
                var Array=[];
                for(var i=0;i<data.length;i++){
                    Array.push(data[i].resourceSort);
                    $scope.show = function(listid) {
                        if (Array.indexOf(listid) != -1) {
                            return true;
                        } else {
                            return false;
                        }
                    }
                }

            }).error(function(data) {});
        }
    ]);

    app.controller('FooterController', ['$scope',
        function($scope) {

        }
    ]);

    app.config(['$stateProvider', '$urlRouterProvider',function ($stateProvider, $urlRouterProvider) {

        $urlRouterProvider.otherwise('index');

        $stateProvider
            .state("index", {
                url: "/index",
                templateUrl: "view/index.html",
                controllerUrl: 'viewjs/indexController.js',
                controller: "indexController",

//              dependencies: ['js/services/userService']
            })
            .state("project", {
            	url: "/project",
            	templateUrl: "view/project/project.html",

            })
            .state("project.projectSearch", {
                url: "/project/search1",
                templateUrl: "view/project/search.html",
                controllerUrl: 'viewjs/project/searchCtrl.js',
                controller: "searchCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("project.projectFirst", {
                url: "/project/first",
                templateUrl: "view/project/first.html",
                controllerUrl: 'viewjs/project/firstCtrl.js',
                controller: "firstCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("project.projectRecheck", {
                url: "/project/recheck",
                templateUrl: "view/project/recheck.html",
                controllerUrl: 'viewjs/project/recheckCtrl.js',
                controller: "recheckCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("project.projectRecall", {
                url: "/project/recall",
                templateUrl: "view/project/recall.html",
                controllerUrl: 'viewjs/project/recallCtrl.js',
                controller: "recallCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("project.projectEndbid", {
                url: "/project/endbid",
                templateUrl: "view/project/endbid.html",
                controllerUrl: 'viewjs/project/endbidCtrl.js',
                controller: "endbidCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("project.repay_list", {
                url: "/project/repay_list",
                templateUrl: "view/project/repay_list.html",
                controllerUrl: 'viewjs/project/repay_listCtrl.js',
                controller: "repay_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("project.rate_list", {
                url: "/project/rate_list",
                templateUrl: "view/project/auto_list.html",
                controllerUrl: 'viewjs/project/rate_listCtrl.js',
                controller: "rate_listCtrl",
//              dependencies: ['js/services/userService']
            })
            //投资管理
            .state("invest", {
                url: "/invest",
                templateUrl: "view/invest/invest.html",
            })
            .state("invest.invest_list", {
                url: "/invest/invest_list1",
                templateUrl: "view/invest/invest_list.html",
                controllerUrl: 'viewjs/invest/invest_listCtrl.js',
                controller: "invest_listCtrl",
//              dependencies: ['js/services/userService']
            })
             .state("invest.collect_list", {
                url: "/invest/collect_list",
                templateUrl: "view/invest/collect_list.html",
                controllerUrl: 'viewjs/invest/collect_listCtrl.js',
                controller: "collect_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("invest.baoInvest_list", {
                url: "/invest/baoInvest_list.html",
                templateUrl: "view/invest/baoInvest_list.html",
                controllerUrl: 'viewjs/invest/baoInvest_listCtrl.js',
                controller: "baoInvest_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("invest.auto_list", {
                url: "/invest/auto_list",
                templateUrl: "view/invest/auto_list.html",
                controllerUrl: 'viewjs/invest/auto_listCtrl.js',
                controller: "auto_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("invest.lock_auto_list", {
                url: "/invest/lock_auto_list",
                templateUrl: "view/invest/lock_auto_list.html",
                controllerUrl: 'viewjs/invest/lock_auto_listCtrl.js',
                controller: "lock_auto_listCtrl",
//              dependencies: ['js/services/userService']
            })
            //账户管理
            .state("account", {
                url: "/account",
                templateUrl: "view/account/account.html",
            })
            .state("account.account_manage", {
                url: "/account/account_manage1",
                templateUrl: "view/account/account_manage.html",
                controllerUrl: 'viewjs/account/account_manageCtrl.js',
                controller: "account_manageCtrl",
//              dependencies: ['js/services/userService']
            })
             .state("account.account_bank", {
                url: "/account/account_bank",
                templateUrl: "view/account/account_bank.html",
                controllerUrl: 'viewjs/account/account_bankCtrl.js',
                controller: "account_bankCtrl",
//              dependencies: ['js/services/userService']
            })
             .state("account.account_log", {
                url: "/account/account_log",
                templateUrl: "view/account/account_log.html",
                controllerUrl: 'viewjs/account/account_logCtrl.js',
                controller: "account_logCtrl",
//              dependencies: ['js/services/userService']
            })
             .state("account.account_cash", {
                url: "/account/account_cash",
                templateUrl: "view/account/account_cash.html",
                controllerUrl: 'viewjs/account/account_cashCtrl.js',
                controller: "account_cashCtrl",
//              dependencies: ['js/services/userService']
            })
             .state("account.account_recharge", {
                url: "/account/account_recharge",
                templateUrl: "view/account/account_recharge.html",
                controllerUrl: 'viewjs/account/account_rechargeCtrl.js',
                controller: "account_rechargeCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("account.account_transfer", {
                url: "/account/account_transfer",
                templateUrl: "view/account/account_transfer.html",
                controllerUrl: 'viewjs/account/account_transferCtrl.js',
                controller: "account_transferCtrl",
//              dependencies: ['js/services/userService']
            })
             //用户管理
            .state("user", {
                url: "/user",
                templateUrl: "view/user/user.html",
            })
            .state("user.user_list", {
                url: "/user/user_list1",
                templateUrl: "view/user/user_list.html",
                controllerUrl: 'viewjs/user/user_listCtrl.js',
                controller: "user_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("user.load_list", {
                url: "/user/load_list",
                templateUrl: "view/user/load_list.html",
                controllerUrl: 'viewjs/user/load_listCtrl.js',
                controller: "load_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("user.guarantee_list", {
                url: "/user/guarantee_list",
                templateUrl: "view/user/guarantee_list.html",
                controllerUrl: 'viewjs/user/guarantee_listCtrl.js',
                controller: "guarantee_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("user.salesman_list", {
                url: "/user/salesman_list",
                templateUrl: "view/user/salesman_list.html",
                controllerUrl: 'viewjs/user/salesman_listCtrl.js',
                controller: "salesman_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("user.account_list", {
                url: "/user/account_list",
                templateUrl: "view/user/account_list.html",
                controllerUrl: 'viewjs/user/account_listCtrl.js',
                controller: "account_listCtrl",
//              dependencies: ['js/services/userService']
            })
            //邀请管理
            .state("invite", {
                url: "/invite",
                templateUrl: "view/invite/invite.html",
            })
            .state("invite.invite_list", {
                url: "/invite/invite_list1",
                templateUrl: "view/invite/invite_list.html",
                controllerUrl: 'viewjs/invite/invite_listCtrl.js',
                controller: "invite_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("invite.invite_income", {
                url: "/invite/invite_income",
                templateUrl: "view/invite/invite_income.html",
                controllerUrl: 'viewjs/invite/invite_incomeCtrl.js',
                controller: "invite_incomeCtrl",
//              dependencies: ['js/services/userService']
            })
            //信息管理
            .state("extend", {
                url: "/extend",
                templateUrl: "view/extend/extend.html",
            })
            .state("extend.type", {
                url: "/extend/type1",
                templateUrl: "view/extend/type.html",
                controllerUrl: 'viewjs/extend/typeCtrl.js',
                controller: "typeCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("extend.notice", {
                url: "/extend/notice",
                templateUrl: "view/extend/notice.html",
                controllerUrl: 'viewjs/extend/noticeCtrl.js',
                controller: "noticeCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("extend.massage", {
                url: "/extend/massage",
                templateUrl: "view/extend/massage.html",
                controllerUrl: 'viewjs/extend/massageCtrl.js',
                controller: "massageCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("extend.email", {
                url: "/extend/email",
                templateUrl: "view/extend/email.html",
                controllerUrl: 'viewjs/extend/emailCtrl.js',
                controller: "emailCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("extend.push_list", {
                url: "/extend/push_list",
                templateUrl: "view/extend/push_list.html",
                controllerUrl: 'viewjs/extend/push_listCtrl.js',
                controller: "push_listCtrl",
//              dependencies: ['js/services/userService']
            })
//            //内容管理
            .state("content", {
                url: "/content",
                templateUrl: "view/content/content.html",
                controller: function ($scope, $state) {
                    $scope.changeState = function () {
                        $state.go('content.article');
                    };
                    $scope.changeState();
                },
            })
            .state("content.site", {
                url: "/content/site",
                templateUrl: "view/content/site.html",
                controllerUrl: 'viewjs/content/siteCtrl.js',
                controller: "siteCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("content.article", {
                url: "/content/article",
                templateUrl: "view/content/article.html",
                controllerUrl: 'viewjs/content/articleCtrl.js',
                controller: "articleCtrl",
//              dependencies: ['js/services/userService']
            })
            //奖励管理
            .state("reward", {
                url: "/reward",
                templateUrl: "view/reward/reward.html",
            })
            .state("reward.coupon_list", {
                url: "/reward/coupon_list1",
                templateUrl: "view/reward/coupon_list.html",
                controllerUrl: 'viewjs/reward/coupon_listCtrl.js',
                controller: "coupon_listCtrl",
//              dependencies: ['js/services/userService']
            })
	        .state("reward.experience_gold", {
	            url: "/reward/experience_gold",
	            templateUrl: "view/reward/experience_gold.html",
	            controllerUrl: 'viewjs/reward/experience_goldCtrl.js',
	            controller: "experience_goldCtrl",
	//              dependencies: ['js/services/userService']
	        })
	        .state("reward.gold_log", {
	            url: "/reward/gold_log",
	            templateUrl: "view/reward/gold_log.html",
	            controllerUrl: 'viewjs/reward/gold_logCtrl.js',
	            controller: "gold_logCtrl",
	//              dependencies: ['js/services/userService']
	        })
	        .state("reward.gold", {
	            url: "/reward/gold",
	            templateUrl: "view/reward/gold.html",
	            controllerUrl: 'viewjs/reward/goldCtrl.js',
	            controller: "goldCtrl",
	//              dependencies: ['js/services/userService']
	        })
	        .state("reward.raise", {
	            url: "/reward/raise",
	            templateUrl: "view/reward/raise.html",
	            controllerUrl: 'viewjs/reward/raiseCtrl.js',
	            controller: "raiseCtrl",
	//              dependencies: ['js/services/userService']
	        })
            .state("reward.reward_rule", {
                url: "/reward/reward_rule",
                templateUrl: "view/reward/reward_rule.html",
                controllerUrl: 'viewjs/reward/reward_ruleCtrl.js',
                controller: "reward_ruleCtrl",
                //              dependencies: ['js/services/userService']
            })

	        //图片管理
            .state("picture", {
                url: "/picture",
                templateUrl: "view/picture/picture.html",
            })
            .state("picture.list", {
                url: "/picture/list1",
                templateUrl: "view/picture/list.html",
                controllerUrl: 'viewjs/picture/listCtrl.js',
                controller: "listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("picture.item", {
                url: "/picture/item",
                templateUrl: "view/picture/item.html",
                controllerUrl: 'viewjs/picture/itemCtrl.js',
                controller: "itemCtrl",
//              dependencies: ['js/services/userService']
            })
            //系统管理
            .state("system", {
                url: "/system",
                templateUrl: "view/system/system.html",
            })

            .state("system.role", {
                url: "/system/role",
                templateUrl: "view/system/role.html",
                controllerUrl: 'viewjs/system/roleCtrl.js',
                controller: "roleCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("system.user", {
                url: "/system/user1",
                templateUrl: "view/system/user.html",
                controllerUrl: 'viewjs/system/userCtrl.js',
                controller: "userCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("system.lock", {
                url: "/system/lock",
                templateUrl: "view/system/lock.html",
                controllerUrl: 'viewjs/system/lockCtrl.js',
                controller: "lockCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("system.suggest", {
                url: "/system/suggest",
                templateUrl: "view/system/suggest.html",
                controllerUrl: 'viewjs/system/suggestCtrl.js',
                controller: "suggestCtrl",
//              dependencies: ['js/services/userService']
            })

            //客户管理
            .state("client", {
                url: "/client",
                templateUrl: "view/client/client.html",
            })
            .state("client.client_me", {
                url: "/client/client_me1",
                templateUrl: "view/client/client_me.html",
                controllerUrl: 'viewjs/client/client_meCtrl.js',
                controller: "client_meCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("client.client_contract", {
                url: "/client/client_contract",
                templateUrl: "view/client/client_contract.html",
                controllerUrl: 'viewjs/client/client_contractCtrl.js',
                controller: "client_contractCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("client.client_remind", {
                url: "/client/client_remind",
                templateUrl: "view/client/client_remind.html",
                controllerUrl: 'viewjs/client/client_remindCtrl.js',
                controller: "client_remindCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("client.invite", {
                url: "/client/invite",
                templateUrl: "view/client/invite.html",
                controllerUrl: 'viewjs/client/inviteCtrl.js',
                controller: "inviteCtrl",
//              dependencies: ['js/services/userService']
            })
            //统计报表
            .state("excel", {
                url: "/excel",
                templateUrl: "view/excel/excel.html",
            })
            .state("excel.excel_individual", {
                url: "/excel/excel_individual1",
                templateUrl: "view/excel/excel_individual.html",
                controllerUrl: 'viewjs/excel/excel_individualCtrl.js',
                controller: "excel_individualCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("excel.excel_client", {
                url: "/excel/excel_client",
                templateUrl: "view/excel/excel_client.html",
                controllerUrl: 'viewjs/excel/excel_clientCtrl.js',
                controller: "excel_clientCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("excel.excel_team", {
                url: "/excel/excel_team",
                templateUrl: "view/excel/excel_team.html",
                controllerUrl: 'viewjs/excel/excel_teamCtrl.js',
                controller: "excel_teamCtrl",
//              dependencies: ['js/services/userService']
            })

        //提成配置

            .state("config", {
                url: "/config",
                templateUrl: "view/config/config.html",
            })
            .state("config.money", {
                url: "/config/money1",
                templateUrl: "view/config/money.html",
                controllerUrl: 'viewjs/config/moneyCtrl.js',
                controller: "moneyCtrl",
//              dependencies: ['js/services/userService']
            })

            //担保公司
            .state("guarantee", {
                url: "/guarantee",
                templateUrl: "view/guarantee/guarantee.html",
            })
            .state("guarantee.guarantee_item", {
                url: "/guarantee/guarantee_item1",
                templateUrl: "view/guarantee/guarantee_item.html",
                controllerUrl: 'viewjs/guarantee/guarantee_itemCtrl.js',
                controller: "guarantee_itemCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("guarantee.guarantee_account", {
                url: "/guarantee/guarantee_account",
                templateUrl: "view/guarantee/guarantee_account.html",
                controllerUrl: 'viewjs/guarantee/guarantee_accountCtrl.js',
                controller: "guarantee_accountCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("guarantee.guarantee_recharge", {
                url: "/guarantee/guarantee_recharge",
                templateUrl: "view/guarantee/guarantee_recharge.html",
                controllerUrl: 'viewjs/guarantee/guarantee_rechargeCtrl.js',
                controller: "guarantee_rechargeCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("guarantee.guarantee_cash", {
                url: "/guarantee/guarantee_cash",
                templateUrl: "view/guarantee/guarantee_cash.html",
                controllerUrl: 'viewjs/guarantee/guarantee_cashCtrl.js',
                controller: "guarantee_cashCtrl",
//              dependencies: ['js/services/userService']
            })
            
            //活动配置

            .state("activity", {
                url: "/activity",
                templateUrl: "view/activity/activity.html",
            })
            .state("activity.count", {
                url: "/activity/count",
                templateUrl: "view/activity/count.html",
                controllerUrl: 'viewjs/activity/countCtrl.js',
                controller: "countCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("activity.result", {
                url: "/activity/result",
                templateUrl: "view/activity/result.html",
                controllerUrl: 'viewjs/activity/resultCtrl.js',
                controller: "resultCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("activity.set", {
                url: "/activity/set",
                templateUrl: "view/activity/set.html",
                controllerUrl: 'viewjs/activity/setCtrl.js',
                controller: "setCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("activity.appoint", {
                url: "/activity/appoint",
                templateUrl: "view/activity/appoint.html",
                controllerUrl: 'viewjs/activity/appointCtrl.js',
                controller: "appointCtrl",
//              dependencies: ['js/services/userService']
            })
            //债权配置
            .state("debt", {
                url: "/debt",
                templateUrl: "view/debt/debt.html",
            })
            .state("debt.debt_list", {
                url: "/debt/debt_list1",
                templateUrl: "view/debt/debt_list.html",
                controllerUrl: 'viewjs/debt/debt_listCtrl.js',
                controller: "debt_listCtrl",
//              dependencies: ['js/services/userService']
            })
            //打包管理
            .state("packMan", {
                url: "/packMan",
                templateUrl: "view/packMan/packMan.html",
            })
            .state("packMan.packMan_list", {
                url: "/packMan/packMan_list1",
                templateUrl: "view/packMan/packMan_list.html",
                controllerUrl: 'viewjs/packMan/packMan_listCtrl.js',
                controller: "packMan_listCtrl",
//              dependencies: ['js/services/userService']
            })
            .state("packMan.packMan_first", {
                url: "/packMan/packMan_first",
                templateUrl: "view/packMan/packMan_first.html",
                controllerUrl: 'viewjs/packMan/packMan_firstCtrl.js',
                controller: "packMan_firstCtrl",
            })
            .state("packMan.packMan_plan", {
                url: "/packMan/packMan_plan",
                templateUrl: "view/packMan/packMan_plan.html",
                controllerUrl: 'viewjs/packMan/packMan_planCtrl.js',
                controller: "packMan_planCtrl",
            })

            //资产管理
            .state("assets", {
                url: "/assets",
                templateUrl: "view/assets/assets.html",
            })
            //资方
            .state("assets.capital", {
                url: "/capital",
                templateUrl: "view/assets/capital.html",
                controllerUrl: 'viewjs/assets/capitalCtrl.js',
                controller: "capitalCtrl"
            })
            //资方项目
            .state("assets.assetsProject", {
                url: "/assetsProject1",
                templateUrl: "view/assets/assetsProject.html",
                controllerUrl: 'viewjs/assets/assetsProjectCtrl.js',
                controller: "assetsProjectCtrl"
            })
            //信用额度管理
            .state("assets.credit", {
                url: "/credit",
                templateUrl: "view/assets/credit.html",
                controllerUrl: 'viewjs/assets/creditCtrl.js',
                controller: "creditCtrl"
            })

            //财务管理
            .state("finance", {
                url: "/finance",
                templateUrl: "view/finance/finance.html",
            })
            .state("finance.bill", {
                url: "/bill1",
                templateUrl: "view/finance/bill.html",
                controllerUrl: 'viewjs/finance/billCtrl.js',
                controller: "billCtrl",
            })
            .state("finance.fee", {
                url: "/fee",
                templateUrl: "view/finance/fee.html",
                controllerUrl: 'viewjs/finance/feeCtrl.js',
                controller: "feeCtrl",
            })
            .state("finance.fundDetail", {
                url: "/fundDetail",
                templateUrl: "view/finance/fundDetail.html",
                controllerUrl: 'viewjs/finance/fundDetailCtrl.js',
                controller: "fundDetailCtrl",
            })

    }]);

    require('./directive');
    require('./config');
    require('./filter');

});
